package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
	"personal-skill/util/resultutil"
)

type BaseController struct {
	beego.Controller
}

// ResponseJson 响应json格式数据
func (c *BaseController) ResponseJson(response resultutil.Response) {
	c.Data["json"] = response
	_ = c.ServeJSON()
	c.StopRun()
}
